﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ShareYou.Entity.Module;
using ShareYou.EntityFramework.ShareYouDb;

namespace ShareYou.Module.Home.Controllers
{

    //返回视图，用来保存当前程序所有的原始html
    public class HomeController:Controller
    {
        public IActionResult Index()
        {
            //return Content("ssssss");
            var db =
                new SyDbContext(
                    "Server=DESKTOP-2I2UK5R;Database=ShareYou;Trusted_Connection=True;MultipleActiveResultSets=true");
            var s = db.Users.ToList();
            return View();
        }
        
    }
}
